<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	template="/WEB-INF/jsf/template.xhtml">

	<ui:define name="content">
		<h:form prependId="false">
			<p:commandButton image="back" ajax="false" immediate="true" style="margin-right:20px;" value="#{rolestiersmsgs['navigation.back']}" action="/jsf/rolestiers/viewRolesTiers.xhtml"/>
		
			<p:panel header="#{rolestiersmsgs['tiers.title']} Details" style="margin-top:10px">
				<p:messages />
				<h:panelGrid id="detail" columns="2" styleClass="grid" columnClasses="label,value">
					<h:outputText value="#{rolestiersmsgs['tiers.tietiers.title']}:*" />
							<h:inputText id="rolestiers_tietiers" value="#{RolesTiersComponent.tiers.tieTiers}" required="true" label="rolestiers_tietiers" />
					<h:outputText value="#{rolestiersmsgs['tiers.tieidentclient.title']}:" />
							<h:inputText id="rolestiers_tieidentclient" value="#{RolesTiersComponent.tiers.tieIdentClient}" required="false" label="rolestiers_tieidentclient" />
					<h:outputText value="#{rolestiersmsgs['tiers.tietypetiers.title']}:" />
							<h:inputText id="rolestiers_tietypetiers" value="#{RolesTiersComponent.tiers.tieTypeTiers}" required="false" label="rolestiers_tietypetiers" />
					<h:outputText value="#{rolestiersmsgs['tiers.tielibexterne.title']}:" />
							<h:inputText id="rolestiers_tielibexterne" value="#{RolesTiersComponent.tiers.tieLibExterne}" required="false" label="rolestiers_tielibexterne" />
					<h:outputText value="#{rolestiersmsgs['tiers.tienationalite.title']}:" />
							<h:inputText id="rolestiers_tienationalite" value="#{RolesTiersComponent.tiers.tieNationalite}" required="false" label="rolestiers_tienationalite" />
					<h:outputText value="#{rolestiersmsgs['tiers.tietelfix.title']}:" />
							<h:inputText id="rolestiers_tietelfix" value="#{RolesTiersComponent.tiers.tieTelFix}" required="false" label="rolestiers_tietelfix" />
					<h:outputText value="#{rolestiersmsgs['tiers.tietelbureau.title']}:" />
							<h:inputText id="rolestiers_tietelbureau" value="#{RolesTiersComponent.tiers.tieTelBureau}" required="false" label="rolestiers_tietelbureau" />
					<h:outputText value="#{rolestiersmsgs['tiers.tietelportable.title']}:" />
							<h:inputText id="rolestiers_tietelportable" value="#{RolesTiersComponent.tiers.tieTelPortable}" required="false" label="rolestiers_tietelportable" />
					<h:outputText value="#{rolestiersmsgs['tiers.tiefax.title']}:" />
							<h:inputText id="rolestiers_tiefax" value="#{RolesTiersComponent.tiers.tieFax}" required="false" label="rolestiers_tiefax" />
					<h:outputText value="#{rolestiersmsgs['tiers.tieemail.title']}:" />
							<h:inputText id="rolestiers_tieemail" value="#{RolesTiersComponent.tiers.tieEMail}" required="false" label="rolestiers_tieemail" />
					<h:outputText value="#{rolestiersmsgs['tiers.tiedatecreation.title']}:" />
							<p:calendar id="rolestiers_tiedatecreation" value="#{RolesTiersComponent.tiers.tieDateCreation}" required="false"  converter="primefacesCalendarConverter" />
					<h:outputText value="#{rolestiersmsgs['tiers.tieusercreation.title']}:" />
							<h:inputText id="rolestiers_tieusercreation" value="#{RolesTiersComponent.tiers.tieUserCreation}" required="false" label="rolestiers_tieusercreation" />
         			<h:panelGroup>
         				<p:commandButton image="save" ajax="false" style="margin-right:20px;" value="#{rolestiersmsgs['navigation.save']}" action="#{RolesTiersComponent.saveRolesTiersTiers(RolesTiersComponent.rolestiers.rotRole, RolesTiersComponent.rolestiers.rotTiers, RolesTiersComponent.tiers)}"/>
         			</h:panelGroup>
				</h:panelGrid>
			</p:panel>

		</h:form>
	</ui:define>
</ui:composition>